/**
 * 
 */
package org.swing.utility.text.imp;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.apache.commons.lang3.StringUtils;

/**
 * @author lqnhu
 *
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface ExcelCell {
	public int index();

	public String defaultValue() default StringUtils.EMPTY;

	public Valid valid() default @Valid();

	@Retention(RetentionPolicy.RUNTIME)
	@Target(ElementType.FIELD)
	public @interface Valid {

		public String[] in() default {};

		public boolean allowNull() default true;

		public double gt() default Double.NaN;

		public double lt() default Double.NaN;

		public double ge() default Double.NaN;

		public double le() default Double.NaN;
	}
}
